#ifndef DINNERTHREAD_H
#define DINNERTHREAD_H

#include <QThread>
#include <QSemaphore>

class DinnerThread : public QThread
{
    Q_OBJECT
public:
    DinnerThread(QSemaphore *semaphore,int index);
    virtual void run() override;
public:
    inline void setStop(){stop = true;}
private:
    bool stop = false;
    QSemaphore *semaphore;
    int index = 0;
};

#endif // DINNERTHREAD_H
